<!-- wyf 2023-6-6 -->
<template>
  <a-icon
    :rotate="rotate"
    :spin="spin"
    :style="style"
  >
    <template v-if="$slots.component" #component>
      <slot name="component" />
    </template>
  </a-icon>
</template>

<script>
import { defineComponent } from 'vue'
import Icon from '@ant-design/icons-vue'
export default defineComponent({
  name: 'ZIcon',
  components: {
    AIcon: Icon
  },
  props: {
    rotate: {
      type: String,
      default: undefined
    },
    spin: {
      type: Boolean,
      default: undefined
    },
    style: {
      type: [Object, Function],
      default: undefined
    }
  }
})
</script>
